import java.util.Scanner;

public class Text2 {
    public static int symbol(String str)
    {
        int n=0;
        for(int i=0;i<str.length();i++)
        {
            if(str.charAt(i)>=48&&str.charAt(i)<=57||str.charAt(i)>=65&&str.charAt(i)<=95||
                    str.charAt(i)>=97&&str.charAt(i)<=122)
            {
                continue;
            }
            else
            {
                n++;
            }
            if(n==2)
                return 25;
        }
        if(n==0){
            return 0;
        }
        else {
            return 10;
        }
    }

    public static int number(String str)
    {
        int n1=0;
        for(int i=0;i<str.length();i++)
        {
            if(str.charAt(i)>=48&&str.charAt(i)<=57)
            {
                n1++;
            }
            if(n1==2)
                return 20;
        }
        if(n1==0){
            return 0;
        }
        else {
            return 10;
        }

    }

    public static int letter(String str)
    {
        int n1=0,n2=0;
        for(int i=0;i<str.length();i++)
        {
            if(str.charAt(i)>=65&&str.charAt(i)<=90)
            {
                n1=1;
            }
            else if(str.charAt(i)>=97&&str.charAt(i)<=122)
            {
                n2=1;
            }
        }
        if(n1+n2==0)
        {
            return 0;
        }else if(n1+n2==1)
        {
            return 10;
        }
        else return 20;
    }

    public static int size(String str)
    {
        if(str.length()<5)
        {
            return 5;
        }
        else if(str.length()<8)
        {
            return 10;
        }
        else return 25;
    }
    public static String grade(int num)
    {
        if(num>=90)
        {
            return "VERY_SECURE";
        }
        else if(num>=80)
        {
            return "SECURE";
        }
        else if(num>=70)
        {
            return "VERY_STRONG";
        }
        else if(num>=60)
        {
            return "STRONG";
        }
        else if(num>=50)
        {
            return "AVERAGE";
        }
        else if(num>=25)
        {
            return "WEAK";
        }
        else
            return "VERY_WEAK";
    }

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String str=in.nextLine();
        int size=size(str);
        int let=letter(str);
        int num=number(str);
        int sym=symbol(str);
        int score=size+let+num+sym;
        if(let>0&&num>0)
        {
            if(sym>0)
            {
                if(let==20)
                {
                    score+=2;
                }
                score+=1;
            }
            score=score+2;
        }
        System.out.println(grade(score));
    }
}
